package com.cysyz.mylib.hibernatedao;


import com.cysyz.mylib.dao.type.TypeResolver;
import org.hibernate.type.*;

/**
 * Created by cy on 2014/7/28.
 */
public class HibernateSqlType implements TypeResolver {

    @Override
    public Object getLong() {
        return LongType.INSTANCE;
    }

    @Override
    public Object getClob() {
        return ClobType.INSTANCE;
    }

    @Override
    public Object getBlob() {
        return BlobType.INSTANCE;
    }

    @Override
    public Object getText() {
        return TextType.INSTANCE;
    }

    @Override
    public Object getBinary() {
        return BinaryType.INSTANCE;
    }

    @Override
    public Object getTimestamp() {
        return TimestampType.INSTANCE;
    }

    @Override
    public Object getDate() {
        return DateType.INSTANCE;
    }

    @Override
    public Object getTime() {
        return TimeType.INSTANCE;
    }

    @Override
    public Object getString() {
        return StringType.INSTANCE;
    }

    @Override
    public Object getChar() {
        return CharacterType.INSTANCE;
    }

    @Override
    public Object getDouble() {
        return DoubleType.INSTANCE;
    }

    @Override
    public Object getShort() {
        return ShortType.INSTANCE;
    }

    @Override
    public Object getByte() {
        return ByteType.INSTANCE;
    }

    @Override
    public Object getInteger() {
        return IntegerType.INSTANCE;
    }

    @Override
    public Object getEnum () {
        return EnumType.ENUM;
    }

}
